package com.taosdata.example.springbootdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taosdata.example.springbootdemo.dao.mysql.MysqlMapper;
import com.taosdata.example.springbootdemo.domain.Weather;
import com.taosdata.example.springbootdemo.service.IMysqlService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

/**
 * @author BUG WRITTER
 * @date 2021/12/13 9:45
 */
@Service
@Log4j2
public class MysqlServiceImpl extends ServiceImpl<MysqlMapper, Weather> implements IMysqlService {
    @Override
    public Weather findOne() {
        return baseMapper.selectList(null).get(0);
    }
}
